-- GENERATED SPELL FOR [Stormforged Amplifier] --


function spell0_30591(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30591', 3000, 1)
end

function Sorts_30591(pUnit, Event)
local choix_sorts_30591 = math.random(0, 0)
if choix_sorts_30591 == 0 then
pUnit:RegisterEvent('spell0_30591', 1, 1)
end
end

function mob30591_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30591', math.random(1500, 3000), 1)
end

function mob30591_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30591_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30591_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30591, 1, 'mob30591_Action')
RegisterUnitEvent(30591, 2, 'mob30591_Leave')
RegisterUnitEvent(30591, 3, 'mob30591_Kill')
RegisterUnitEvent(30591, 4, 'mob30591_Die')
